﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HanGu.Entity;
using System.ServiceModel;

namespace HanGu.Services.Interface
{
    [ServiceContract(Name = "FileManage", Namespace = "http://www.haigu.com/")]
    public interface IFileManage
    {
        [OperationContract]
        List<FileManage> GetAll();
        [OperationBehavior]
        FileManage GetByID(int id);
        [OperationContract]
        FileManage GetByID(string guid);
        [OperationContract]
        List<FileManage> GetByGroupName(string guid);
        [OperationContract]
        List<FileManage> GetByGuid(string guid);
        [OperationContract]
        bool Add(FileManage model);
        [OperationContract]
        bool Update(FileManage model);
        [OperationContract]
        bool Delete(string guid);
        [OperationContract]
        bool DeleteByID(int id);
        [OperationContract]
        bool DeleteByGroupName(string guid);
        [OperationContract]
        bool DeleteByGuid(string guid);
        
    }
}
